Change default cpufreq governor to ondemand
authorKeir Fraser <keir.fraser@citrix.com>
Sun, 17 Jan 2010 18:07:10 +0000 (18:07 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Sun, 17 Jan 2010 18:07:10 +0000 (18:07 +0000)
Back in c/s 18950 the default cpufreq governor was set to userspace
(it had previously been performance).  However, since there is no
supplied userspace program or script that will change the frequency
this is at best a no-op.  Worse, on some hardware with some BIOS
revisions, this actually sets the CPUs running at their lowest
frequency rather than their highest and there is a corresponding (and
initially puzzling) drop in performance.

This patch changes the default governor to "ondemand" which should
make it the same as the Linux default and will provide power savings
for the majority without needing to write a userspace governor.  For
those that want to install their own governor, that is still possible.

Signed-off-by: John Haxby <john.haxby@oracle.com>
xen/include/acpi/cpufreq/cpufreq.h

index 2f24c4fed6402abe6903af653fcd1e8bdc9179cb..0cfda5d653499f25af7b455142e906a6db662c99 100644 (file)
@@ -100,7 +100,7 @@ extern struct cpufreq_governor cpufreq_gov_powersave;
 extern int cpufreq_register_governor(struct cpufreq_governor *governor);
 extern int cpufreq_unregister_governor(struct cpufreq_governor *governor);
 extern struct cpufreq_governor *__find_governor(const char *governor);
-#define CPUFREQ_DEFAULT_GOVERNOR &cpufreq_gov_userspace
+#define CPUFREQ_DEFAULT_GOVERNOR &cpufreq_gov_dbs
 
 /* pass a target to the cpufreq driver */
 extern int __cpufreq_driver_target(struct cpufreq_policy *policy,